package com.zbf.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/9  19:55
 * 描述:
 */
@Mapper
@Repository
public interface HtongDao {

    @Insert("insert into base_ht(title,htcode,content,jiafang,yifang,riqi,filePath,fileName) values(#{title},#{htcode},#{content},#{jiafang},#{yifang},#{riqi},#{filePath},#{fileName})")
    public int insertIntoHt(Map<String, Object> map);


    @Select("select htcode,content,jiafang,yifang,riqi,fileName,filePath from base_ht where htcode=#{htcode}")
    public Map<String,String> gethtInfo(String htcode);

}
